﻿@if(Request.IsAuthenticated) {
                            <ul class="nav pull-right">
                                <li class="dropdown"><a href="#"class="dropdown-toggle" data-toggle="dropdown">@Model.Translate("account")<b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    <li><a href="@Url.RouteUrl("Default", new RouteValueDictionary { { "controller", "cart" }, { "action", "history" }, })">@Model.Translate("history")</a></li>
                                    <li><a href="@Url.RouteUrl("Default", new RouteValueDictionary { { "controller", "login" }, { "action", "profile" },})">@Model.Translate("profile")</a></li>
                                    <li class="divider"></li>
                                    <li><a href="@Url.RouteUrl("Default", new RouteValueDictionary { { "controller", "login" }, { "action", "logout" },})">@Model.Translate("logout")</a></li>
                                </ul>
                            </ul>
}
else {
    <ul class="nav pull-right">
        <li><a href="@Url.RouteUrl("Default", new RouteValueDictionary { { "controller", "login" }, { "action", "index" },})">@Model.Translate("login")</a></li>
    </ul>
}
